from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.


def book(request):
    return HttpResponse("图书首页")


def book_detail(request, bookid):
    text = "book的id为" + bookid
    return HttpResponse(text)


def author(request):
    author_id = request.GET.get('id')
    text = "作者id" + author_id
    return HttpResponse(text)


def chubanshe(request, chu_id):
    text = "出版社id" + str(chu_id)
    return HttpResponse(text)
